package com.myiam.idm.meta.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Embeddable
public class AuditFields {
	

	@Column
	@Temporal(TemporalType.TIMESTAMP)
	private Date createDate;
	
	@Column
	@Temporal(TemporalType.TIMESTAMP)
	private Date modifiedDate;
	
	
	@Column
	private String createdByIdentifier = "";
	
	@Column
	private long createdBy;
	
	@Column
	private String modifiedByIdentifier = "";
	
	@Column
	private long modifiedBy;
	
	

	
	
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public String getCreatedByIdentifier() {
		return createdByIdentifier;
	}
	public void setCreatedByIdentifier(String createdByIdentifier) {
		this.createdByIdentifier = createdByIdentifier;
	}
	public long getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}
	public String getModifiedByIdentifier() {
		return modifiedByIdentifier;
	}
	public void setModifiedByIdentifier(String modifiedByIdentifier) {
		this.modifiedByIdentifier = modifiedByIdentifier;
	}
	public long getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(long modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	
	
}
